the derivative of natural log with chain rule